namespace py protocol.control

enum FileType {
   PHOTO = 1,
   OTHER = 99
}

service SowarnaControlService {
    // returns the operationID for the putFile operation.
    string PutFile(1:string filename, 2:FileType type, 3:string nameSpace, 4:string hash, 5:i64 size, 6:set<string> tags, 7:map<string, string> metadata) /*throws (1:FileAlreadyExistError, 2:NoSpaceLeftError, 3:PleaseAuthenticate, 4:NotAuthorizedError)*/,
    // returns the operationID for the requested getFile operation.
    string getFile(1:string handle)/* throws (1:SoException, 2:FileNotFoundError)*/
}
